<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 14:40
 */

namespace util\validate\rules;

/**
 * 验证数字或字符串在某个范围之内
 *
 * Class Between
 * @package validate\rules
 */
class Between extends BaseRule
{

    public function verify()
    {
        return $this->value >= $this->params[0] && $this->value <= $this->params[1];
    }
}